initialValue{ }
beginProxyRegeneration{
  MAGIC_IN_PROGRESS.set(true);
}
endProxyRegeneration{
  MAGIC_IN_PROGRESS.remove();
}
loadClass{
  if (MAGIC_IN_PROGRESS.get()) {
    throw new ClassNotFoundException("fakereplace");
  return classLoader.loadClass(className);
}
toClass{
    try {
      final Class<?> originalProxyClass=loader.loadClass(ct.getName());
      try {
        ByteArrayOutputStream bs=new ByteArrayOutputStream();
        ct.write(new DataOutputStream(bs));
        Agent.redefine(new ClassDefinition[]{new ClassDefinition(originalProxyClass,bs.toByteArray())},new AddedClass[0]);
        return originalProxyClass;
 catch (      Exception e) {
        throw new RuntimeException(e);
 catch (    ClassNotFoundException e) {
      return ClassFileUtils.toClass(ct,loader,domain);
  return ClassFileUtils.toClass(ct,loader,domain);
}
